package cn.qingyun.gis.modules.alongstreet.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * @Description: 商圈边界表实体对象
 * @Version: V1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("business_boundary")
@ApiModel(value = "BusinessBoundary对象", description = "BusinessBoundary对象")
public class BusinessBoundary implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 商圈id
     */
    @ApiModelProperty(value = "商圈id")
    @Excel(name = "商圈id", width = 15)
    private String businessId;

    /**
     * 中心点地址
     */
    @ApiModelProperty(value = "中心点地址")
    @Excel(name = "中心点地址", width = 15)
    private String centAddress;

    /**
     * 业务地市
     */
    @ApiModelProperty(value = "业务地市")
    @Excel(name = "业务地市", width = 15)
    private String regionCity;

    /**
     * 业务区县
     */
    @ApiModelProperty(value = "业务区县")
    @Excel(name = "业务区县", width = 15)
    private String regionDistricts;

    /**
     * 归属网格
     */
    @ApiModelProperty(value = "归属网格")
    @Excel(name = "归属网格", width = 15)
    private String girdId;

    /**
     * 归属网格名称
     */
    @ApiModelProperty(value = "归属网格名称")
    @Excel(name = "归属网格名称", width = 15)
    private String gridName;

    /**
     * 商圈名称
     */
    @ApiModelProperty(value = "商圈名称")
    @Excel(name = "商圈名称", width = 15)
    private String businessName;

    /**
     * 审核时间
     */
    @ApiModelProperty(value = "审核时间")
    @Excel(name = "审核时间", width = 15)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 绘制时间
     */
    @ApiModelProperty(value = "绘制时间")
    @Excel(name = "绘制时间", width = 15)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 边界地址
     */
    @ApiModelProperty(value = "边界地址")
    @Excel(name = "边界地址", width = 15)
    private String wkt;

    /**
     * 业务地市编码
     */
    @ApiModelProperty(value = "业务地市编码")
    @Excel(name = "业务地市编码", width = 15)
    private String regionCityCode;

    /**
     * 业务区县编码
     */
    @ApiModelProperty(value = "业务区县编码")
    @Excel(name = "业务区县编码", width = 15)
    private String regionDistrictsCode;

    /**
     * 流转状态
     */
    @ApiModelProperty(value = "流转状态")
    @Excel(name = "流转状态", width = 15)
    private Integer auditStatus;

    /**
     * 中心点-经度
     */
    @ApiModelProperty(value = "中心点-经度")
    @Excel(name = "中心点-经度", width = 15)
    private BigDecimal lon;

    /**
     * 中心点-纬度
     */
    @ApiModelProperty(value = "中心点-纬度")
    @Excel(name = "中心点-纬度", width = 15)
    private BigDecimal lat;

    /**
     * 绘制人
     */
    @ApiModelProperty(value = "绘制人")
    @Excel(name = "绘制人", width = 15)
    private String createBy;

    /**
     * 审核人
     */
    @ApiModelProperty(value = "审核人")
    @Excel(name = "审核人", width = 15)
    private String updateBy;

    /**
     * （驳回）备注信息
     */
    @ApiModelProperty(value = "（驳回）备注信息")
    @Excel(name = "（驳回）备注信息", width = 15)
    private String remark;

    /**
     * 合格数(0:无效/1:合格/2:不合格)
     */
    @ApiModelProperty(value = "合格数(0:无效/1:合格/2:不合格)")
    @Excel(name = "合格数(0:无效/1:合格/2:不合格)", width = 15)
    private Integer qualified;

    /**
     * 质检人
     */
    @ApiModelProperty(value = "质检人")
    @Excel(name = "质检人", width = 15)
    private String qualityBy;

    /**
     * 质检时间
     */
    @ApiModelProperty(value = "质检时间")
    @Excel(name = "质检时间", width = 15)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date qualityTime;

}
